package com.kukudexin.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @author: 酷酷的鑫
 * @Date: 2021/10/9 16:13
 * @description:
 */
@RestController
public class TestController {
    @GetMapping("/hello")
    public Mono<String> hello() {
        // 使用Mono.just生成响应式数据
        return Mono.just("Hello world");
    }


}
